﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using PhotoGalleryEnteties;

namespace photogalleryMVC.Controllers
{
    public class NewsController : PhotoGalleryController
    {
        //
        // GET: /News/

        [Authorize]
        public ActionResult Index()
        {
            GalleryUser user = UserRepository.GetUserByName(User.Identity.Name);
            return View(NewsRepository.GetRecentNews(user));
        }

    }
}
